#include "logger.h"

Logger::Logger()
{
}

void Logger::log(QString logContent)
{
    QFile fileLog(LOG_FILE_NAME);
    if(!fileLog.open(QIODevice::Append| QIODevice::Text))
        return;

    QTextStream logStream(&fileLog);
    logStream.setCodec("UTF-8");
    logStream<<logContent;
    logStream.flush();

    fileLog.close();
}
